package com.espirit.eap.manager.processor;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;

import com.espirit.EntityMapping;
import com.espirit.eap.ICheckModelDuplicateInfo;
import com.googlecode.cswish.model.Saas;

@Entity
public class BizNodeInfo extends EntityMapping implements Serializable, ICheckModelDuplicateInfo, Saas {

	private static final long serialVersionUID = -4517361894912283369L;

	private final static String[] checkProperties = new String[] {"modelSimpleName+method+preCondition"};
	
	private String name;
	
	private String modelSimpleName;		// simple name,  action --> service --> model
	
	private String method;
	
	private String preCondition;
	
	private Integer sid;
	public Integer getSid() {
		return sid;
	}

	public void setSid(Integer sid) {
		this.sid = sid;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getModelSimpleName() {
		return modelSimpleName;
	}

	public void setModelSimpleName(String modelSimpleName) {
		this.modelSimpleName = modelSimpleName;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	@Column(length=5000)
	public String getPreCondition() {
		return preCondition;
	}

	public void setPreCondition(String preCondition) {
		this.preCondition = preCondition;
	}

	@Override
	public String[] gatherProperties() {
		return checkProperties;
	}
	
	private String remark;
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}
